package com.zpark.mybatis_plus.config;

import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @PackageName: com.zpark.mybatis_plus.config
 * @ClassName: MyBatisPlusConfig
 * @Description:
 * @author: RZS
 * @date: 2023/6/30  11:25
 */
@Configuration
@MapperScan("com.zpark.mybatis_plus.mapper")
public class MyBatisPlusConfig {

    /**
     * 构建分页对象
     * @return
     */
    @Bean
    public PaginationInnerInterceptor paginationInnerInterceptor(){
        return new PaginationInnerInterceptor();
    }
}
